package com.icedevcloud.upms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.icedevcloud.common.core.mybatis.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 租户表
 * </p>
 *
 * @author XiaoBingBy
 * @since 2023-08-13
 */
@Getter
@Setter
@TableName("sys_tenant")
@Schema(name = "SysTenant", description = "$!{table.comment}")
public class SysTenant extends BaseEntity {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "租户编号")
    private String tenantNo;

    @Schema(description = "联系人")
    private String contactUserName;

    @Schema(description = "联系电话")
    private String contactPhone;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "统一社会信用代码")
    private String licenseNumber;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "域名")
    private String domain;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "租户套餐编号")
    private Long packageId;

    @Schema(description = "过期时间")
    private LocalDateTime expireTime;

    @Schema(description = "用户数量（-1不限制）")
    private Integer accountCount;

    @Schema(description = "租户状态 1-启用 0-禁用")
    private Integer status;
}
